<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.selectWidth2{
   width:205px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo4"
	cellspacing="1">
	 <tr>
				<td class="t_bar3" colspan="4">出质的专利权情况（单位：项）</td>
	</tr>
	<tr>
	<td align="center" width="25%">合计</td>
	<td align="center" width="25%">发明</td>
	<td align="center" width="25%">实用新型</td>
	<td align="center" width="25%">外观设计</td>
	</tr>
	<tr align="center">
	<td><x:out select="$xmlData/data/proposal/total_patent" /></td>
	<td><x:out select="$xmlData/data/proposal/total_invention" /></td>
	<td><x:out select="$xmlData/data/proposal/total_utility" /></td>
	<td><x:out select="$xmlData/data/proposal/total_appearance" /></td>
	</tr>
</table>
<table  id="tblPatents" cellpadding="0" class="table01" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="10%">序号</th>
						<th class="TblHead" align="center"  width="30%">专利名称</th> 
				        <th class="TblHead" align="center"  width="30%">专利号</th> 
						<th class="TblHead" align="center"  width="30%">对应产品名称</th> 
					</tr>
			</thead>
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/patents/patent" var="patent">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<span name="patents/patent[${flag}${index}]@seq_no" ><x:out select="$patent/@seq_no"/></span> 
						</td>
						<td>
							<x:out select="$patent/patent_name" />
						</td>
						<td >
							<x:out select="$patent/patent_no" />
						</td> 
						<td >
							<x:out select="$patent/product_name" />
						</td> 
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					</table>
		<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo5" cellspacing="1">
		    <tr>
				<td class="t_bar3" colspan="4">专利权质押合同情况</td>
			</tr>
			<tr>
			<td align="right" width="25%">合同登记、备案情况：</td>
			<td valign="middle" width="25%">
			<x:out select="$xmlData/data/proposal/contract_name" /></td>
			<td  align="right" width="25%">合同登记备案号：</td>
			<td width="25%">
				<x:out select="$xmlData/data/proposal/contract_no" />
			</td>
			</tr>
			<tr>
			<td align="right">合同期限：</td>
			<td colspan="3">
			<x:out select="$xmlData/data/proposal/contract_start_date" />
			至
			<x:out select="$xmlData/data/proposal/contract_end_date" />
			</td>
			</tr>
			<tr>
			<td align="right">出质的专利权评估值（万元）：</td>
			<td><x:out select="$xmlData/data/proposal/patent_evaluation_value" /></td>
			<td align="right">出质的专利权质押金额（万元）：</td>
			<td><x:out select="$xmlData/data/proposal/patent_pledge_value" /></td>
			</tr>
			<tr>
			<td align="right">专利权评估机构：</td>
			<td colspan="3"><x:out select="$xmlData/data/proposal/evaluated_org" /></td>
			</tr>
			<tr>
			<td align="right">专利权质押以外其它担保情况：</td>
			<td colspan="3"><x:out select="$xmlData/data/proposal/guarantee" /></td>
			</tr>
			<tr>
				<td class="t_bar3" colspan="4">专利权质押贷款合同情况</td>
			</tr>
			<tr>
			<td  align="right">贷款银行：</td>
			<td>
				<x:out select="$xmlData/data/proposal/lending_bank" />
			</td>
			<td  align="right">银行帐户类型：</td>
			<td>
				<x:out select="$xmlData/data/proposal/bank_account_type" />
			</td>
			</tr>
			<tr>
			<td  align="right">银行帐号：</td>
			<td>
				<x:out select="$xmlData/data/proposal/bank_account" />
			</td>
			<td  align="right">贷款金额 （万元）：</td>
			<td>
				<x:out select="$xmlData/data/proposal/loan_amount" />
			</td>
			</tr>
			<tr>
			<td align="right">贷款期限：</td>
			<td colspan="3">
			<x:out select="$xmlData/data/proposal/loan_start_date" />
			至
			<x:out select="$xmlData/data/proposal/loan_end_date" />
			</td>
			</tr>
			<tr>
			<td align="right">贷款利息合计（万元）：</td>
			<td><x:out select="$xmlData/data/proposal/loan_interest" /></td>
			<td align="right">贷款利率（%）：</td>
			<td><x:out select="$xmlData/data/proposal/loan_interest_rate" /></td>
			</tr>
		</table>
		
		<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo5" cellspacing="1">
		<tr>
				<td class="t_bar3" colspan="4">贷款银行意见</td>
			</tr>
		    <tr>
		    <td>
		    <c:set var="start_date"><x:out select="$xmlData/data/bankopinion/start_date" /></c:set>
		    <c:set var="end_date"><x:out select="$xmlData/data/bankopinion/end_date" /></c:set>
		    <c:set var="pay_date"><x:out select="$xmlData/data/bankopinion/pay_date" /></c:set>
		    &nbsp;&nbsp;&nbsp;&nbsp;
					<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />在我行以专利权质押的方式贷款
					<x:out select="$xmlData/data/bankopinion/loan_mount" />万元，借款合同编号为
					<x:out select="$xmlData/data/bankopinion/loan_contract_no" />，借款凭证编号为
					<x:out select="$xmlData/data/bankopinion/loan_proof_no" />，贷款期限为
					${fn:substring(start_date,0,4) }年${fn:substring(start_date,5,7) }月${fn:substring(start_date,8,10) }日至
					${fn:substring(end_date,0,4) }年${fn:substring(end_date,5,7) }月${fn:substring(end_date,8,10) }日，还款结息方式为
					<x:out select="$xmlData/data/bankopinion/loan_payway" />。
					<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />已于
					${fn:substring(pay_date,0,4) }年${fn:substring(pay_date,5,7) }月${fn:substring(pay_date,8,10) }日还清该借款合同项下的贷款本金和利息，其中支付利息共计
					<x:out select="$xmlData/data/bankopinion/loan_accrual" />万元。
		    </td>
		    </tr>
	</table>